// 手机号验证
export const isValidPhone = (phone) => {
  const reg = /^1[3-9]\d{9}$/
  return reg.test(phone)
}

// 密码验证 (至少包含6-20位字符)
export const isValidPassword = (password) => {
  return password.length >= 6 && password.length <= 20
}

// 验证码验证 (6位数字)
export const isValidCode = (code) => {
  const reg = /^\d{6}$/
  return reg.test(code)
} 